package com.dmz.workflow.feign;

import com.dmz.workflow.req.ProcessStartReq;
import com.dmz.workflow.res.StartProcessRes;
import com.echronos.commons.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "ech-workflow")
public interface IProcessInstanceFeign {
    /**
     * feign调用启动流程
     * @param processStartReq 启动流程请求参数
     * @return 处理结果返回processInstanceId
     */
    @GetMapping("/api/workflow/instance/start")
    Result<StartProcessRes> startProcess(@RequestBody ProcessStartReq processStartReq);
}
